<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'addNote.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript">
    function showTime(){ 
        var now=new Date; 
        document.getElementById("dd").innerHTML=now.getFullYear() 
        +"年"+(now.getMonth()+1) 
        +"月"+now.getDate() 
        +"日"+now.getHours() 
        +":"+now.getMinutes()+":"+now.getSeconds(); 
        setTimeout("showTime()","1000"); 
    } 
</script>
</head>
<body onload="showTime()">
	<div style="widows:800px; margin:0px 15%">
		<p align="right">
			<b>个人便签设置</b>
		</p>
		<hr width="900px" color="#999999" size="2">
		<br />
	</div>
	<div style="widows:800px; margin:0px 15%; padding-left:20px;">
		<s:form action="addNote" namespace="/control/schedule" method="post">
			便签标题：<br>
			<input type="text" name="myNote.title" size="100">
			<br>
			便签内容：<br>
			<textarea name="myNote.content" rows="15" cols="85"></textarea>
			<table width="700" align="center">
				<tr>
					<td width="50%">创建人:<s:property value="#session.user.userName" />
					</td>
					<td>创建时间：<label id="dd"></label> </td>
				</tr>
				<tr>
					<td width="50%"><input type="submit" value="保 存"></td>
					<td><input type="button" value="删除当前便签"></td>
				</tr>
			</table>
		</s:form>
	</div>
</body>
</html>
